<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'index' => 4,
        'css' => [
            'assets/wx/css/center.css',
        ]
    ]);
?>

<body class="center" ng-controller="wx-center-ticket-get-controller">


<section class="aui-content">

    <div ng-class="{'aui-hide': lists.length != 0 }" class="gu-ticket-center-epy">
        <p class="aui-text-center">没有优惠券</p>
    </div>

    <div class="aui-content aui-margin-b-15">
        <ul class="gu-ticket aui-list aui-media-list aui-padded-l-10 aui-padded-r-10 aui-padded-t-10 aui-padded-b-10">
            <li class="aui-list-item aui-margin-b-10 gu-ticket-item" ng-repeat="(index, t) in lists" style="height: auto;">
                <div class="aui-media-list-item-inner">
                    <div class="gu-ticket-icon gu-ticket-click-to-get"></div>
                    <div class="aui-list-item-media">
                        <p class="gu-price"><strong ng-bind="t.amount_format + '元'"></strong></p>
                        <p class="gu-desc" ng-bind="'满' + t.limit_amount_format + '元可用'"></p>
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title" ng-bind="t.name"></div>
                        </div>
                        <div class="aui-list-item-text">
                            <div class="aui-info-item aui-margin-t-5" style="font-size: 12px;" ng-bind="t.time_start + ' - ' + t.time_end"></div>
                        </div>
                    </div>
                    <div class="gu-get-ticket-btn" ng-click="clickToGetTicket(index)">立即领取</div>
                </div>
            </li>
        </ul>
    </div>

</section>

<?php
    $this->load->view('wx/public/footer.html', [
        'js' => [
            'assets/wx/js/center/ticket/get.js'
        ]
    ]);
?>

